import { createRouter, createWebHashHistory } from 'vue-router';
import config from '@/config';


const router = createRouter({
    history: createWebHashHistory(),
    routes:config.routes
});


// 全局后置路由守卫
router.afterEach((to) =>
{
    document.title = to.meta.title  || 'MontUI框架';
});

export default router;
